package com.twang.stock.controller;

import com.twang.stock.dto.TenXunStock;
import com.twang.stock.service.ZuoTiService;
import com.twang.stock.service.ZuoTiStrategyService;
import com.twang.stock.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/strategy")
public class ZuoTiStatusController {
    @Autowired
    private ZuoTiStrategyService zuoTiStrategyService;

    @RequestMapping("/queryZuoTiStatus/")
    public R queryZuoTiStatus(@RequestBody TenXunStock p){
        return R.ok().put("data", zuoTiStrategyService.excuteZuoTiStategy(p));
    }
}
